package tech.aistar.entity;


import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 用户实体类
 */
public class User implements Serializable {
  private Integer id;
  private String username;
  private String password;
  private Date birthday;
  private Integer power;

  private List<Video> videoList;

  public User() {
  }

  public User(String username, String password, Date birthday, Integer power) {
    this.username = username;
    this.password = password;
    this.birthday = birthday;
    this.power = power;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public Date getBirthday() {
    return birthday;
  }

  public void setBirthday(Date birthday) {
    this.birthday = birthday;
  }

  public Integer getPower() {
    return power;
  }

  public void setPower(Integer power) {
    this.power = power;
  }

  public void setVideoList(List<Video> videoList) {
    this.videoList = videoList;
  }

  public List<Video> getVideoList() {
    return videoList;
  }

  @Override
  public String toString() {
    final StringBuilder sb = new StringBuilder("User{");
    sb.append("id=").append(id);
    sb.append(", username='").append(username).append('\'');
    sb.append(", password='").append(password).append('\'');
    sb.append(", birthday=").append(birthday);
    sb.append(", power=").append(power);
    sb.append('}');
    return sb.toString();
  }
}
